// 全局需要初始化的样式

body,
html {
  color: @color-text-base;
  -webkit-overflow-scrolling: touch;
  &.static {
    position: fixed;
    left: 0;
    width: 100%;
  }
}
// 深色模式
// @media (prefers-color-scheme: dark) {
//   .dark-theme;
//   body, html {
//     background-color: @fill-body  !important;
//     color: @color-text-base;
//     font-family: "Microsoft YaHei", "Arial", "黑体", "宋体";
//   }
// }
body,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
  margin: 0;
  padding: 0;
}
body,
button,
input,
select,
textarea {
  font: 12px/1.5tahoma, arial, \5b8b\4f53;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
}
address,
cite,
dfn,
em,
var {
  font-style: normal;
}
code,
kbd,
pre,
samp {
  font-family: couriernew, courier, monospace;
}
small {
  font-size: 12px;
}
ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: @color-text-base;
}
sup {
  vertical-align: text-top;
}
sub {
  vertical-align: text-bottom;
}
legend {
  color: #000;
}
fieldset,
img {
  border: 0;
}
button,
input,
select,
textarea {
  font-size: 100%;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
// 1像素底边，父元素需设置position属性
.ratio-border-bottom {
  &::after {
    content: '';
    position: absolute;
    background-color: @split-line;
    display: block;
    z-index: 1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
  }
}
.ignore-ratio-border-bottom-left-15 {
  &::after {
    content: '';
    position: absolute;
    background-color: @split-line;
    display: block;
    z-index: 1;
    bottom: 0;
    left: 15px;
    right: 0;
    // width: calc(100% - 15px);
    height: 1px;
  }
}
// 1像素底边，父元素需设置position属性
.ratio-border-bottom-100vw {
  &::after {
    content: '';
    position: absolute;
    background-color: @split-line;
    display: block;
    z-index: 1;
    bottom: 0;
    left: -15px;
    width: 100vw;
    height: 1px;
  }
}
.ratio-border {
  position: relative;
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    box-sizing: border-box;
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: left top;
    border: 1px solid @border-light;
  }
  // border: 1px solid @border-light;
}
.ratio-border-wrap(@color: #ddd) {
  position: relative;
  &::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    border: 1px solid @color;
    border-radius: 10px;
    transform-origin: 0 0;
    transform: scale(0.5);
    box-sizing: border-box;
    pointer-events: none;
  }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .ratio-border-bottom {
    &::after {
      content: '';
      position: absolute;
      background-color: @split-line;
      display: block;
      z-index: 1;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      transform-origin: 50% 100%;
      transform: scaleY(0.5);
    }
  }
  .ignore-ratio-border-bottom-left-15 {
    &::after {
      content: '';
      position: absolute;
      background-color: @split-line;
      display: block;
      z-index: 1;
      bottom: 0;
      left: 15px;
      right: 0;
      // width: calc(100% - 15px);
      height: 1px;
      transform-origin: 50% 100%;
      transform: scaleY(0.5);
    }
  }
  .ratio-border-bottom-100vw {
    &::after {
      content: '';
      position: absolute;
      background-color: @split-line;
      display: block;
      z-index: 1;
      bottom: 0;
      left: -15px;
      width: 100vw;
      height: 1px;
      transform-origin: 50% 100%;
      transform: scaleY(0.5);
    }
  }
  .ratio-border-wrap(@color: #ddd) {
    position: relative;
    &::after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 200%;
      height: 200%;
      border: 1px solid @color;
      border-radius: 10px;
      transform-origin: 0 0;
      transform: scale(0.5);
      box-sizing: border-box;
      pointer-events: none;
    }
  }
}



// antd样式产生的影响
html{
  dl, ol, ul{
    margin:0;
    padding:0;
  }
  a:hover{
    color: rgb(51, 51, 51);
  }
  
}



